home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.onyx.net!newsmaster
- From: Nik.Palmer@onyx.octacon.co.uk (Nik Palmer)
- Newsgroups: comp.lang.c
- Subject: sin function in Turbo C 3
- Date: Wed, 28 Feb 1996 19:34:28 GMT
- Organization: ONYX.net
- Message-ID: <4h2al3$rim@mulgave.octacon.co.uk>
- NNTP-Posting-Host: r03-17.onyx.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi easy question first,
- when findng the angle in trigonometry on my calc I use the sin-1
- function to give me the answer in degrees a la
-
- sin(theta)=opp/hyp
-
- but Turbo C only has the sin function how do I get the answer in
- degrees(or radians)
- Q2
- when dividing doubles using the / function I would like to have the
- answer in the form 10/3 = 3.3333etc like I know I lose the fraction,
- I can get around this using the other functions which provide me with
- the remiander to redivide, or multiply the number to be divided by
- 1000 then do some bits to get the result.
-
- There must be a better way
- Thanks email me or post here
-
-